package com.modouyu.demo212.demo212;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;

/**
 * @Auther: modouyu
 * @Date: 2018/7/10 08:21
 * @Description:
 *      spring boot 对应Enviroment已经准备完毕，但此时上下文context还没有创建。
 * @Email: yangcb@daochunfin.com
 */
@Slf4j
public class ApplicationEnvironmentPreparedEventListener implements ApplicationListener<ApplicationEnvironmentPreparedEvent> {
    @Override
    public void onApplicationEvent(ApplicationEnvironmentPreparedEvent applicationEnvironmentPreparedEvent) {
        log.info("......ApplicationEnvironmentPreparedEvent......");
    }
}
